package org.jeecg.modules.charge.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.entity.charge.ChargeOrderReview;
import org.jeecg.entity.charge.ChargeOrderReviewDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 交易对账表
 * @Author: jeecg-boot
 * @Date:   2020-11-15
 * @Version: V1.0
 */
public interface IChargeOrderReviewService extends IService<ChargeOrderReview> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ChargeOrderReview chargeOrderReview, List<ChargeOrderReviewDetail> chargeOrderReviewDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ChargeOrderReview chargeOrderReview, List<ChargeOrderReviewDetail> chargeOrderReviewDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

    List<ChargeOrderReview> findPage(Page<ChargeOrderReview> page, ChargeOrderReview chargeOrderReview);


    void batchSaveOrUpdate(List<ChargeOrderReview> chargeOrderReviewList);
}
